package com.hsylient.javase.chapter10;

import cn.hutool.core.util.BooleanUtil;
import cn.hutool.core.util.RandomUtil;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;

@Slf4j
public class BooleanTest {


    @Test
    public void testSimpleBoolean() {
        boolean randomBoolean = RandomUtil.randomBoolean();
        int booleanToIntValue = BooleanUtil.toInt(randomBoolean);
        log.info("[HuTool工具类-布尔类型转整型] 原布尔类型[{}] 转换后的整型[{}]", randomBoolean, booleanToIntValue);
    }
}
